package com.example.WebSocketDemo.mapper;

import com.example.WebSocketDemo.bean.Friend;
import com.example.WebSocketDemo.bean.FriendRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface FriendRequestMapper {

    List<FriendRequest> getFriendRequestByUsername(String username);

    void rejectRequest(String id);

    void agreeRequest(String id);

    void addFriend(Friend friendRequest);

    void userDontLine(String username,String friendName);

    List<FriendRequest> getUnAcceptedRequest(String username);

    void changeRequestAccepted(String username);
}
